//判断一个数组中的最值
//夏梓豪
//2023/03/31

package code_zuizhi;

public class test1 {
    public static void main(String[] args) {
        int[] arr = {33,5,22,44,55};
        int max = arr[0];

        for (int i = 1; i < arr.length; i++) {
            if (arr[i] > max){
                max = arr[i];
            }
        }
        System.out.println("数组中的最大值为："+max);
    }
}
